home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
djgpp
/
samples
/
hello
/
testit.bat
< prev
next >
Wrap
DOS Batch File
|
1993-11-13
|
3KB
|
103 lines
@echo off
echo.
echo Checking the installation...
echo.
if exist ..\..\bin\go32.exe goto got_go32
echo The file bin/go32.exe is missing. This should be in djeoeXXX.zip
goto exit
:got_go32
if exist ..\..\bin\setdjgpp.bat goto got_setdjgpp
echo The file bin/setdjgpp.bat is missing. This should be in djdevXXX.zip.
goto exit
:got_setdjgpp
if exist ..\..\bin\gcc.exe goto got_gcc
echo The file bin/gcc.exe is missing. This should be in gccXXXbn.zip.
goto exit
:got_gcc
if exist ..\..\bin\cc1.exe goto got_cc1
echo The file bin/cc1.exe is missing. This should be in gccXXXbn.zip.
goto exit
:got_cc1
if exist ..\..\bin\cpp.exe goto got_cpp
echo The file bin/cpp.exe is missing. This should be in gccXXXbn.zip.
goto exit
:got_cpp
if exist ..\..\include\stdio.h goto got_stdio
echo The file include/stdio is missing. This should be in djdevXXX.zip.
goto exit
:got_stdio
if exist ..\..\bin\as.exe goto got_as
echo The file bin/as.exe is missing. This should be in gasXXXbn.zip.
goto exit
:got_as
if exist ..\..\bin\ld.exe goto got_ld
echo The file bin/ld.exe is missing. This should be in bnuXXbn.zip.
goto exit
:got_ld
if exist ..\..\lib\crt0.o goto got_crt0
echo The file bin/crt0.o is missing. This should be in djdevXXX.zip.
goto exit
:got_crt0
if exist ..\..\lib\libc.a goto got_libc
echo The file bin/libc.a is missing. This should be in djdevXXX.zip.
goto exit
:got_libc
if exist ..\..\bin\cc1plus.exe goto got_cc1plus
echo The file bin/cc1plus.exe is missing. This should be in gppXXX.zip.
echo You will not be able to compile C++ programs without this module.
:got_cc1plus
if exist ..\..\bin\cc1obj.exe goto got_cc1obj
echo The file bin/cc1obj.exe is missing. This should be in objcXXX.zip.
echo You will not be able to compile Objective-C programs without this module.
:got_cc1obj
if exist ..\..\bin\info.exe goto got_info
echo The file bin/info.exe is missing. This should be in txiXXXbn.zip.
echo You will not be able to read the online documention without this module.
:got_info
if exist ..\..\docs\djgpp\libcref.i goto got_libdocs
echo The file docs/djgpp/libcref.i is missing. This should be in djdocXXX.zip.
echo You will not have any documentation without this module.
:got_libdocs
echo.
echo Warning! This program changes all DJGPP-related environment variables.
echo Press Ctrl-C now to cancel!
echo.
pause
call ..\..\bin\setdjgpp ../.. ..\..
set TMPDIR=.
set GO32TMP=.
set GO32=
echo.
echo Compiling the test program
echo.
..\..\bin\gcc -v hello.c -o hello
echo.
echo Running the test program
echo.
..\..\bin\go32 hello
echo .
:exit